package com.zhentao.controller;

import com.zhentao.model.dtos.ResponseResult;
import com.zhentao.model.wemedia.dto.ChannelDto;
import com.zhentao.service.WmChannelService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("/api/v1/channel")
public class WmChannelController {
    @Autowired
    private WmChannelService channelService;

    /**
     * 频道列表信息查询  对应mysql表 wm_channel
     * @return
     */
    @GetMapping("/channels")
    public ResponseResult findAll(){
        return channelService.findAll();
    }





}
